<?php
/**
 * Created by PhpStorm.
 * User: wuchao
 * Date: 2020/4/3
 * Time: 14:24
 */

use think\facade\Route;
//根据运营商获取配置
Route::post('v1/GetAppid', 'v1.Wxlogin/GetAppid');
//微信授权登录
Route::post('v1/Vxlogin', 'v1.Wxlogin/login');
//获取首页数据
Route::post('v1/Index', 'v1.home.index/index');
//搜索商品
Route::post('v1/Search', 'v1.home.index/search');
//商品详情
Route::post('v1/Detail', 'v1.home.index/detail');
//用户搜索站点
Route::post('v1/SearchSite', 'v1.home.index/SearchSite');
/**
 * 购物车相关
 */
//加入购物车
Route::post('v1/AddCart', 'v1.home.cart/AddCart');
//删除购物车
Route::post('v1/DelCart', 'v1.home.cart/DelCart');
//查看购物车
Route::post('v1/CartList', 'v1.home.cart/CartList');
//购物车商品数量（不管份数）
Route::post('v1/CartNum', 'v1.home.cart/CartNum');
//购物车加减数量
Route::post('v1/NumCart', 'v1.home.cart/NumCart');
/**
 * 分类相关
 */
//获取一级分类
Route::post('v1/OneCategory', 'v1.home.CateGory/OneCategory');
//获取二级分类
Route::post('v1/TwoCategory', 'v1.home.CateGory/TwoCategory');
//获取三级分类和商品
Route::post('v1/ThreeCategory', 'v1.home.CateGory/ThreeCategory');
/**
 * 用户地址相关
 */
//用户地址列表
Route::post('v1/AddressList', 'v1.home.Address/AddressList');
//用户地址添加
Route::post('v1/AddAddress', 'v1.home.Address/AddAddress');
//用户地址修改
Route::post('v1/EditAddress', 'v1.home.Address/EditAddress');
//用户地址删除
Route::post('v1/DelAddress', 'v1.home.Address/DelAddress');
/**
 *订单相关
 */
//生成订单
Route::post('v1/NewOrder', 'v1.home.Order/NewOrder');
